package linear_list.dlistwithhead;

public class Test {
    public static void main(String[] args) {
        DoubleLinckedList list = new DoubleLinckedList();
        list.addFirst(1);
        list.addFirst(2);
        list.addLast(5);
        list.addLast(2);
        list.addInsert(0,2);
        list.addInsert(5,12);
        list.addInsert(3,2);
        System.out.println(list);

        list.removeValueOnce(2);
        System.out.println(list);
        list.removeAllvalue(2);
        System.out.println(list);

    }
}
